#include <inttypes.h>
#include <stdio.h>

static const int_fast16_t INTFAST16_LIMIT_MAX = 12000;

void print_fast16(int_fast16_t val){
    enum { MAX_SIZE = 80 };
    char buf[MAX_SIZE];
    if (INTFAST16_LIMIT_MAX < val){
        sprintf(buf,"The value is too large");
    } else {
        snprintf(buf, MAX_SIZE, "The value is %" PRIdFAST16,val);
    }
}